<table class="liste">
	<caption>Tahmin Ligi Tablosu 05 Jun 2009</caption>
	<tr>
		<th>Pos</th><th>User Name</th><th>P</th><th>W</th><th>D</th><th>L</th><th>F</th><th>A</th><th>GD</th><th>Pts</th>
	</tr>

	{foreach from=$items key=myId item=i name=standing_table}
	  <tr>
	  	{if $smarty.foreach.standing_table.first}
		  	<th class="odul">{$myId}.</th>
		  	<td class="odul"><a href="showuserpredictions.php?user={$i.usernum}">{$i.username}</a></td>
		  	<td class="odul">{$i.played}</td>
		  	<td class="odul">{$i.won}</td>
		  	<td class="odul">{$i.drawn}</td>
		  	<td class="odul">{$i.lost}</td>
		  	<td class="odul">{$i.gf}</td>
		  	<td class="odul">{$i.ga}</td>
		  	<td class="odul">{$i.avg}</td>
		  	<td class="odul">{$i.pts}</td>
	  	{else}
		  	<th>{$myId}.</th>
		  	<td><a href="showuserpredictions.php?user={$i.usernum}">{$i.username}</a></td>
		  	<td>{$i.played}</td>
		  	<td>{$i.won}</td>
		  	<td>{$i.drawn}</td>
		  	<td>{$i.lost}</td>
		  	<td>{$i.gf}</td>
		  	<td>{$i.ga}</td>
		  	<td>{$i.avg}</td>
		  	<td>{$i.pts}</td>	  	
	  	{/if}
	  </tr>
	{/foreach}		      
</table>